﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FacultyImplementation
{
    class Program
    {
        static void Main(string[] args)
        {
            int select;
            string choice = "N";
            Faculty faculty = new Faculty();
            Department department = new Department();
            Group group = new Group();
            Student student = new Student();

            do
            {
                Console.Clear();
                Console.WriteLine("1 - Fill information about faculty, departments, groups and students");
                Console.WriteLine("2 - Show all faculty hierarchy");
                Console.WriteLine("3 - Show all departments in the faculty");
                Console.WriteLine("4 - Show students who study at a particular department");

                Console.Write("Select: ");
                select = Int32.Parse(Console.ReadLine());

                switch (select)
                {
                    case 1:
                        Console.Clear();
                        faculty.AddFacultyInfo();
                        faculty.AddDepartmentToFaculty();
                        break;
                    case 2:
                        faculty.FacultyShowInfo();
                        break;
                    case 3:
                        faculty.OnlyDepartmentNameShowInfo();
                        break;
                    case 4:
                        faculty.ShowStudentsOnTheParticularDepartment();
                        break;
                    default:
                        Console.WriteLine("Incorrect choice");
                        break;
                }
                Console.WriteLine("Return to main menu? Y/N");
                choice = Console.ReadLine().ToUpper();
            }
            while (choice == "Y");
        }
    }
}
